import request from '@/utils/request'

// 查询分捡单列表
export function listSplitBill(query) {
  return request({
    url: '/inOutStock/splitBill/list',
    method: 'get',
    params: query
  })
}

// 查询分捡单详细
export function getSplitBill(id) {
  return request({
    url: '/inOutStock/splitBill/' + id,
    method: 'get'
  })
}

// 新增分捡单
export function addSplitBill(data) {
  return request({
    url: '/inOutStock/splitBill',
    method: 'post',
    data: data
  })
}

// 修改分捡单
export function updateSplitBill(data) {
  return request({
    url: '/inOutStock/splitBill',
    method: 'put',
    data: data
  })
}

// 删除分捡单
export function delSplitBill(id) {
  return request({
    url: '/inOutStock/splitBill/' + id,
    method: 'delete'
  })
}
